# -------------- Configuration of the Radium Core targets and definitions -------------------------
if(NOT TARGET Core)
    include(CMakeFindDependencyMacro)
    find_dependency(Threads REQUIRED)
    if(@OPENMP_FOUND@) # Indicates if OpenMP has been used when compiling the Radium libraries
        find_dependency(OpenMP REQUIRED)
    endif()

    set(glm_DIR "@glm_DIR@")
    set(Eigen3_DIR "@Eigen3_DIR@")
    set(OpenMesh_DIR "@OpenMesh_DIR@")
    set(cpplocate_DIR "@cpplocate_DIR@")
    set(nlohmann_json_DIR "@nlohmann_json_DIR@")

    set(RadiumExternalDlls_location "")

    find_dependency(Eigen3 REQUIRED NO_DEFAULT_PATH)
    find_dependency(OpenMesh REQUIRED NO_DEFAULT_PATH)
    find_dependency(cpplocate REQUIRED NO_DEFAULT_PATH)
    find_dependency(nlohmann_json REQUIRED NO_DEFAULT_PATH)
    find_dependency(Filesystem COMPONENTS Final Experimental REQUIRED)
    if(MSVC OR MSVC_IDE OR MINGW)
        add_imported_dir(FROM cpplocate::cpplocate TO RadiumExternalDlls_location)
    endif()
    include("${CMAKE_CURRENT_LIST_DIR}/CoreTargets.cmake")
endif(NOT TARGET Core)
